package com.alan.shiro.api.controller;

import com.alan.shiro.api.bean.ResultMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: Alan liu
 * @Date: 2018/12/11 19:09
 * @Description: GuestController
 */
@RestController
@RequestMapping("/guest")
public class GuestController {

    @RequestMapping(value = "/enter", method = RequestMethod.GET)
    public ResultMap login() {
        return new ResultMap().success().message("欢迎进入，您的身份是游客");
    }

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public ResultMap submitLogin() {
        return new ResultMap().success().message("您拥有获得该接口的信息的权限！");
    }

}
